﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="RecoverPassword.aspx.vb" Inherits="DARSClients.RecoverPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function validateEmail() {
            if (document.getElementById('txtEmail')) {
                var elementValue = document.getElementById('txtEmail').value;
                var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
                if (emailPattern.test(elementValue)) {
                    return true;
                }
                else {
                    alert('Invalid email address format');
                    document.getElementById('txtEmail').select();
                    return false;
                } 
            }
        }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="lblMsg" runat="server" style="color: #FF0000" Text="Label"></asp:Label>
        <br />
        <br />
    
        <asp:Label ID="lblEnterEmail" runat="server" Text="Enter your email : " 
            style="position: relative"></asp:Label>
&nbsp;<asp:TextBox ID="txtEmail" runat="server" style="position: relative"></asp:TextBox>
        <br />
        <asp:Label ID="lblInstruction" runat="server" 
            Text=" Please answer the following security questions : "></asp:Label>
        <br />
                <asp:Label ID="lblSecurityQ1" runat="server" Text="Label"></asp:Label>
        <br />
        <asp:TextBox ID="txtSecurityA1" runat="server" style="position: relative"></asp:TextBox>
        <br />
        <asp:Label ID="lblSecurityQ2" runat="server" Text="Label" 
            style="position: relative"></asp:Label>
        <br />
        <asp:TextBox ID="txtSecurityA2" runat="server" style="position: relative"></asp:TextBox>
    <asp:Button ID="btnSubmit" runat="server" Text="Button" 
            style="position: relative; top: 0px; left: -1px;" />
    </div>
    </form>
</body>
</html>
